package com.ron.ronmall.member.controller;

import com.ron.common.utils.R;
import com.ron.ronmall.member.feign.FeignCouponService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 测试open-feign远程调用
 *
 * @author Ron
 * @date 2021/3/3 21:16
 **/
@RestController
@RequestMapping("member/test")
public class TestFeignCallController {
    @Autowired
    private FeignCouponService feignCouponService;

    @RequestMapping("/coupon/info/{id}")
    public R info(@PathVariable("id") Long id){
        return feignCouponService.info(id);
    }
}
